package com.burpee.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.burpee.dao.HealthpointDao;
import com.burpee.ui.Healthpoint;
@Service(value="healthpointService")
public class HealthpointServiceImpl implements HealthpointService {
	
	@Autowired
	HealthpointDao healthpointDao;

	public List<Healthpoint> list(String memberId) {
		
		return healthpointDao.list(memberId);
	}

	public Healthpoint view(String memberId) {
		// TODO Auto-generated method stub
		return healthpointDao.view(memberId);
	}

	public boolean add(Healthpoint healthpoint) {
		if(healthpointDao.add(healthpoint) > 0){
			return true;
		}
		else{

			return false;
		}
	}

}
